package org.tmsps.ne4spring.base.ne;

import java.io.Serializable;

import org.tmsps.ne4spring.utils.ChkUtil;

/**
 * 分页
 * 
 * @author 冯晓东 398479251@qq.com
 *
 */
public class NeSort implements Serializable {
	private static final long serialVersionUID = -1936470346516905569L;

	private String property;
	private String order;

	public NeSort() {

	}

	public NeSort(String property, String order) {
		super();
		this.property = property;
		this.order = order;
	}

	public String getSql() {
		return String.format(" %s %s ", property, order);
	}

	public boolean isNull() {
		if (ChkUtil.isNull(property)) {
			return true;
		}
		return false;
	}

}
